﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pear.Core.Entities.LiveCenter
{
    /// <summary>
    /// 视频表
    /// </summary>
    [SugarTable("Video", TableDescription = "视频表")]
    public class VideoModel
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, ColumnDescription = "Id")]
        public long Id { get; set; }

        /// <summary>
        /// 视频标题
        /// </summary>
        [SugarColumn(ColumnName = "Name", ColumnDescription = "视频标题")]
        public string Name { get; set; }

        /// <summary>
        /// 视频标题
        /// </summary>
        [SugarColumn(ColumnName = "Url", ColumnDescription = "视频地址")]
        public string Url { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "设备编码")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "UpdateTime", IsNullable = true, ColumnDescription = "修改时间")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [SugarColumn(ColumnName = "Enabled", DefaultValue = "1", ColumnDescription = "是否启用")]
        public bool Enabled { get; set; }
    }
}